import { TableColumnObject } from 'amis/lib/renderers/Table'
import baseEnumColumnUtils from '@/components/amis/common/BaseEnumColumnUtils/baseEnumColumnUtils'
import IamAccountProfileSexEnum from '@/core/account/generated/enums/IamAccountProfileSexEnum'
import IamAccountStatusEnum from '@/core/account/generated/enums/IamAccountStatusEnum'
import IamAccountProfileRegisterSourceFromEnum from '@/core/account/generated/enums/IamAccountProfileRegisterSourceFromEnum'

class IamAccountProfileRegisterSourceFromColumnUtils {
	getSchema = (parmas?: Partial<TableColumnObject>): TableColumnObject => {
		const mergeSchema = Object.assign(
			{
				name: 'registerSourceFrom',
				label: '注册来源',
				baseEnum: IamAccountProfileRegisterSourceFromEnum,
			},
			parmas,
		)
		return baseEnumColumnUtils.getSchema(mergeSchema)
	}
}

export default new IamAccountProfileRegisterSourceFromColumnUtils()
